package org.config;

import org.construct.inject.AService;
import org.construct.inject.BService;
import org.construct.inject.CService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@SuppressWarnings("unused")
public class ConstructConfig {

    @Bean
    public AService aService(BService bService) {
        return new AService(bService);
    }

    @Bean
    public BService bService(CService cService) {
        return new BService(cService);
    }

    @Bean
    public CService cService(AService aService) {
        return new CService(aService);
    }
}
